package com.aos.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName Authorization
 * @Description:授权
 * @Author wumingwang
 * @Date 2018/9/5 11:22
 * @Version 1.0
 */
@Data
public class Authorization implements Serializable {

    private static final long serialVersionUID = 5125831649849576763L;

    /**主键、自增*/
    private Long id;

    /**授权用户(t_permission_user.id)*/
    private Long sourceUserId;

    /**被授权用户(t_permission_user.id)*/
    private Long targetUserId;

    /**权限id*/
    private Long permissionId;

    /**是否生效【生效:1;未生效:2】*/
    private String enable;

    /**创建时间*/
    private Date createdTimestamp;

    /**授权过期日期。授权过期，授权者自动恢复权限。可为空，空即为无期限授权*/
    private Date expireDate;

    /**权限回收时间*/
    private Date revokeDatetime;
}
